<div class="table">
	<h2><?= _l('title'); ?></h2>

	<div class="table_body">
	<form name="send" style="margin:0px" method="post" action="/feedback/">

		<table cellspacing="0" cellpadding="2" width="100%">
			<tr>
				<td align="right"><?= _l('to');?>:</td>
				<td>
					<select name="mail" class="form">
					<?php foreach($admins as $aid => $aname): ?>
						<option value="<?=$aid?>"><?= _l('admin');?>: <?=$aname?></option>
					<?php endforeach; ?>
						<option value="<?=$SITE['site_email']?>"><?= _l('site_email');?></option>
					</select>
				</td>
			</tr>

		<?php if ($feedback['user_email'] == "on"): ?>
			<tr>
				<td align="right"><?= _l('your_email');?>:</td>
				<td>
					<input type="text" maxleigth="40" name="user_mail" 
							style="width:60%" class="form" value="<?=$user_email?>">
				</td>
			</tr>
		<?php else: ?>
			<tr>
				<td align="right"><?= _l('your_name');?>:</td>
				<td><input type="text" maxleigth="40" name="user_name" style="width:60%" class="form" value=""></td>
			</tr>
		<?php endif; ?>

		<?php if ($feedback['titles'] == ''): ?>
			<tr>
				<td align="right"><?= _l('subject');?>:</td>
				<td>
					<input type="text" maxleigth="40" name="title" style="width:60%" class="form" value="<?=$_POST['title']?>">
				</td>
			</tr>
		<?php else: ?>
			<tr>
				<td align="right" valign="top"><?= _l('subject');?>:</td>
				<td>
				<?php foreach($titles as $title): ?>
					<input type="radio" name="select_title" value="<?=$title?>" id="'<?=$title?>" /> 
					<label for="'<?=$title?>">
						"<?=$title?>"
					</label><br />
				<?php endforeach; ?>
				</td>
			</tr>

			<?php if ($feedback['user_title'] == 'on'): ?>
			<tr>
				<td align="right"><?= _l('another_subject');?>:</td>
				<td>
					<input type="text" maxleigth="40" name="user_title" 
						style="width:60%" class="form" value="<?=$_POST['user_title']?>">
				</td>
			</tr>
			<?php endif; ?>

		<?php endif; ?>

			<tr>
				<td align="right" valign="top"><?= _l('text');?>:</td>
				<td><textarea name="text" class="form" style="width:90%" rows="10"><?=$_POST['text']?></textarea></td>
			</tr>

		<?php if ($SITE['bot_protect'] == "yes"): ?>
			<tr>
				<td align="right"><?= _l('anti_bot');?>:</td>
				<td>
					<img src="/antibot.gif" align="absmiddle"> 
					<input class="form" size="5" type="text" name="code" maxlength="5" value="">
				</td>
			</tr>
		<?php endif; ?>
			<tr>
				<td colspan="2" align="center">
				<input type="submit" style="width:160px" class="button" value="<?= _l('send');?>"></td>
			</tr>
		</table>

	</form>
	</div>
</div>
